package io;

import java.io.Serializable;
import java.util.Arrays;

public class Person implements Serializable {
        String name;
        int age;
        String gender;
        String[] ontherInfo;

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public String getGenfer() {
        return gender;
    }
    public void setGenfer(String genfer) {
        this.gender = genfer;
    }
    public String[] getOntherInfo() {
        return ontherInfo;
    }
    public void setOntherInfo(String[] ontherInfo) {
        this.ontherInfo = ontherInfo;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", genfer='" + gender + '\'' +
                ", ontherInfo=" + Arrays.toString(ontherInfo) +
                '}';
    }

    public Person(String name, int age, String gender, String[] ontherInfo) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.ontherInfo = ontherInfo;
    }
}
